<!--{subtemplate jameson_read:author_header}-->
<!--[diy=diy1]--><div id="diy1" class="area"></div><!--[/diy]-->
<div id="jameson_read" class="author_jamesonread  jameson_read uk-grid-collapse pt10" uk-grid>
	<div class="uk-width-medium" style="width: 230px;">
		<div class="uk-border-e6 back-f9">
			<div class="uk-card">
			    <div class="uk-card-header uk-text-center">
			            <div class="">
			                <img class="uk-border-circle" width="80" height="80" src="{eval echo avatar($_G['uid'],'big',true);}">
			            </div>
			            <div class="">
			                <h3 class="uk-card-title uk-margin-remove-bottom">{$_G['username']}</h3>
			                <p class="uk-text-meta uk-margin-remove-top">
			                	{lang jameson_read:yifabutushu}[{$_G['jameson_read']['booksnum']}]{lang jameson_read:bu}
			                </p>
			            </div>
			    </div>
			    <div class="uk-card-footer">
			    	<a href="{eval echo jamesonurl('author',0,'book');}" class="uk-button uk-button-primary">{lang jameson_read:tianjiaxinshu}+</a>
			    </div>
			</div>
			<ul class="uk-nav-primary uk-nav-parent-icon uk-border-top uk-border-bottom" uk-nav>
			  	<li class="pl10 {if !isset($_GET['act']) || ($_GET['act'] == 'index')} uk-active {/if} uk-border-bottom">
			  		<a href="{eval echo jamesonurl('author',0,'index');}"><span class="uk-margin-small-right" uk-icon="icon: pencil"></span>{lang jameson_read:zuopinguanli}</a>
			  	</li>
			  	<li class="pl10 {if $_GET['act'] == 'xiajia'} uk-active {/if} uk-border-bottom">
			  		<a href="{eval echo jamesonurl('author',0,'xiajia');}"><span class="uk-margin-small-right" uk-icon="icon: menu"></span>{lang jameson_read:xiajiazuopin}</a>
			  	</li>
		  		{if $_G['jameson_read']['enableshupiao']}
			  	<li class="pl10 {if $_GET['act'] == 'shupiao'} uk-active {/if} uk-border-bottom">
		  	        <a class="" href="{eval echo jamesonurl('author',0,'shupiao');}"><span class="uk-margin-small-right" uk-icon="icon: credit-card"></span>{lang jameson_read:wodeshupiao}</a>
			  	</li>
			  	{/if}
			  	<li class="pl10 {if $_GET['act'] == 'dashang'} uk-active {/if} uk-border-bottom">
			  		<a href="{eval echo jamesonurl('author',0,'dashang');}"><span class="uk-margin-small-right" uk-icon="icon: album"></span>{lang jameson_read:dashangjilu}</a>
			  	</li>
			    <li class=" pl10   {if $_GET['act'] == 'sell'} uk-active {/if}">
			        <a class="" href="{eval echo jamesonurl('author',0,'sell');}"><span class="uk-margin-small-right" uk-icon="icon: table"></span>{lang jameson_read:xiaoshou}{lang jameson_read:jilu}</a>
			    </li>
			</ul>
			{if $_G['jameson_read']['authorcentergg']}
			<div class="uk-padding-small" uk-alert>
				<!--{$_G['jameson_read']['authorcentergg']}-->
			</div>
			{/if}
		</div>
		</div>

<div class="uk-width-expand uk-margin-left">
	<ul class="uk-tab uk-tab-bb mb0 pl0" uk-tab="{connect:'.uk-switcher'}">
	    <li class="xs3 xw1  pl0 {if !isset($_GET['type'])}uk-active{/if}"><a href="">{lang jameson_read:shenqingtixian}</a></li>
	    <li class="xs3 xw1  {if $_GET['type']=='tixianjilu'}uk-active{/if}"><a href="">{lang jameson_read:tixianjilu}</a></li>
	</ul>
	<div id="shupiaowrap" class="uk-switcher">
		<div class="{if !isset($_GET['type'])}uk-active{/if}">
			<form id="shenqingtixian_menu" class="uk-form" action="./plugin.php?id=jameson_read&contrl=author&act=duihuan" method="post" onsubmit="return jamesonauthor.checkzhanghu(this);">
				<table class="uk-table uk-table-hover">
					<thead class="grayback">
						<tr class="">
							<th class="">{lang jameson_read:piaojumingcheng}</th>
							<th>{lang jameson_read:tixianjiage}</th>
							<th class="">{lang jameson_read:dangqianweitixian}/{lang jameson_read:jizhang}</th>
							<th>{lang jameson_read:heji}</th>
						</tr>
					</thead>
					<tbody>
						{loop $piaojus $key $value}
						<tr id="">
							<td class="">
							{if !$value['ing']}
							<div class="uk-form-row">
							    <div class="uk-form-controls">
								<label class="uk-form-label">
									{$value['name']}
							    </label>
									<input  type="checkbox" {if $value['num']<1} disabled disabled {/if} class="uk-checkbox" name="check[{$value['topic_id']}]" value="1" />
							    </div>
						    </div>
							{else}
								{$value['name']}
								<em>[{lang jameson_read:shenqingzhong}]</em>
							{/if}
							</td>
							<td>{$value['adv']}{lang jameson_read:yuan}</td>
							<td>{$value['num']}</td>
							<td>{lang jameson_read:duihuan} {$value['duihuan']} {lang jameson_read:yuan}
								<input type="hidden" name="field[{$value['topic_id']}]" value="{$value['field']}" />
								<input type="hidden" name="type[{$value['topic_id']}]" value="{$value['type']}" />
							</td>
						</tr>
						{/loop}
						<tr>
							<td colspan="4">
								<div class="uk-form-row">
								<div class="uk-form-controls">
									<textarea required class="uk-textarea" id="zhanghuinfo"  name="zhanghuinfo" placeholder="{lang jameson_read:shoukuanzhanghu}"></textarea>
								</div>
								</div>
							</td>
						</tr>
						<tr>
							<td colspan="4">
								<button class="uk-button uk-button-danger" {if $piaojunums < 1} disabled {/if} type="submit">{lang jameson_read:shenqingtixian}</button>
							</td>
						</tr>
					</tbody>
				</table>
				<input type="hidden" name="formhash"  value="{FORMHASH}" />
			</form>
		</div>

		    <div class="{if $_GET['type']=='tixianjilu'}uk-active{/if}" id="tixianjilu_menu">
		    	{if $tixianjilu}
		    		<table class="uk-table uk-table-hover">
		    			<thead>
		    				<tr class="">
		    					<th>{lang jameson_read:xuhao}</th>
		    					<th class="">{lang jameson_read:piaojumingcheng}</th>
		    					<th class="">{lang jameson_read:shuliang}/{lang jameson_read:jizhang}</th>
		    					<th>{lang jameson_read:heji}{lang jameson_read:yitixian}/{lang jameson_read:yuan}</th>
		    				</tr>
		    			</thead>
		    			<tbody>
		    				{loop $tixianjilu $key $value}
		    				<tr id="">
		    					<td>{eval echo $key+1;}</td>
		    					<td>{$value['name']}</td>
		    					<td>{$value['number']}</td>
		    					<td>{$value['money']}</td>
		    				</tr>
		    				{/loop}
		    			</tbody>
		    		</table>
		    		<div class="pg">{$pageshow}</div>
		    	{else}
		    		<div class="mt0 mb0 ptm pbm plm">
						<div class="uk-alert-danger" uk-alert>{lang jameson_read:zanwujilu}</div>
		    		</div>
		    	{/if}
		    </div>
	</div>
</div>


</div>
<!--[diy=diy2]--><div id="diy2" class="area"></div><!--[/diy]-->
<!--{subtemplate jameson_read:all_footer}-->